package Day33;

public class Shape{
   private int length;
   private int width;

    public Shape(int length, int width) {
        this.length = length;
        this.width = width;
    }

    public Shape() {
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }
    public int getArea(int length, int width){
        return 0;
    }
}

class Rectangle extends Shape{
    public Rectangle(int length, int width) {
        super(length, width);
    }

    public Rectangle() {
    }
    public int getArea(int length, int width){
        return (length + width) * 2;
    }
}


class Squre extends Shape{
    public Squre(int length, int width) {
        super(length, width);
    }

    public Squre() {
    }
    public int getArea(int length, int width){
        return length * 4;
    }
}